package service;

import entity.Account;

/**
 * @program: FinalExam
 * @description:
 * @create: 2021-12-14 17:13
 * @Date 2021/12/14
 **/

public interface AccountService {
    /**
     * 根据id查询用户的余额
     * @param id
     * @return
     */
    public Account QueryMyBalance(String user_id);

    /**
     * 根据卡号转账
     * @param id 转账人的id
     * @param money 转账金额
     * @param username 给谁转账
     * @return
     */
    public Boolean transferAccountsNyUsername( String id ,Double money, String username);

    /**
     * 根据用户id进行取款
     * @param id
     * @param money
     * @return
     */
    public Boolean withdrawalById(String id ,Double money);

    Account QueryMyBalanceByUsername(String toUsername);

    void saveMoney(Double money,String uid);

    void deleteAccount(String choice);
}
